-- GENERATED SPELL FOR [Kor'kron Pillager] --


function spell0_27665(pUnit, Event) --@Blood Fury,Self--
pUnit:FullCastSpellOnTarget(20572,pUnit)
pUnit:RegisterEvent('Sorts_27665', 15262, 1)
end

function spell1_27665(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40505,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27665', 634, 1)
end

function Sorts_27665(pUnit, Event)
local choix_sorts_27665 = math.random(0, 1)
if choix_sorts_27665 == 0 then
pUnit:RegisterEvent('spell0_27665', 1, 1)
end
if choix_sorts_27665 == 1 then
pUnit:RegisterEvent('spell1_27665', 1, 1)
end
end

function mob27665_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27665', math.random(1500, 3000), 1)
end

function mob27665_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27665_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27665_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27665, 1, 'mob27665_Action')
RegisterUnitEvent(27665, 2, 'mob27665_Leave')
RegisterUnitEvent(27665, 3, 'mob27665_Kill')
RegisterUnitEvent(27665, 4, 'mob27665_Die')
